<?php
class home_controller extends common {
	function index() {
		return msg(0, null, array(
			'syInfo' => array(
				array(
					'title' => '操作系统类型',
					'value' => php_uname('s')
				),
				array(
					'title' => '可用磁盘空间',
					'value' => autoSize(@disk_free_space("."))
				),
				array(
					'title' => '服务器软件',
					'value' => $_SERVER["SERVER_SOFTWARE"]
				),
				array(
					'title' => 'PHP版本',
					'value' => PHP_VERSION
				),
				array(
					'title' => '数据库版本',
					'value' => $this->sql->version()
				),
				array(
					'title' => '用户',
					'value' => @get_current_user()
				),
				array(
					'title' => '服务器名称',
					'value' => $_SERVER['SERVER_NAME']
				)
			)
		));
	}
}